package com.rock.platform.core;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

public abstract class AbstractBeanPostProcessor implements BeanPostProcessor {
	public Object postProcessAfterInitialization(Object bean, String id)
			throws BeansException {
		process(bean, id);

		return bean;
	}

	public Object postProcessBeforeInitialization(Object bean, String id)
			throws BeansException {
		return bean;
	}

	abstract void process(Object paramObject, String paramString);
}